﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReAnimation.Domain
{
    [Serializable]
    public class Animation
    {
        private IList<AnimationStep> _animationSteps;

        public virtual IEnumerable<AnimationStep> AnimationSteps
        {
            get
            {
                return _animationSteps;
            }
            set
            {
                _animationSteps = new List<AnimationStep>(value);
            }
        }

        public virtual String Name { get; set; }

        public Animation()
        {
            _animationSteps = new List<AnimationStep>();
        }

        public virtual void AddAnimationStep(AnimationStep animationStep)
        {
            _animationSteps.Add(animationStep);
        }

        public virtual void RemoveAnimationStep(AnimationStep animationStep)
        {
            _animationSteps.Remove(animationStep);
        }
    }
}
